package com.szqhyxj.youxiangju.biz.creditCardEvaluation.buycreditcardEvaluationSuccess;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.KeyEvent;

import com.szqhyxj.youxiangju.BaseActivity;
import com.szqhyxj.youxiangju.R;
import com.szqhyxj.youxiangju.biz.creditCardEvaluation.CreditCardEcaluationActivity;
import com.szqhyxj.youxiangju.biz.creditCardEvaluation.evaluationRecord.EvaluationRecordActivity;
import com.szqhyxj.youxiangju.biz.equipmentActivation.equipmentCardslot.EquipmentCardSlotActivity;
import com.szqhyxj.youxiangju.sys.components.NavigationBar;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by leung on 2018/11/10.
 */

public class BuycreditcardEvaluationSuccessActicvity extends BaseActivity implements NavigationBar.NavigationBarListener{

    @BindView(R.id.navigationBar)
    NavigationBar navigationBar;

    public static void start(Activity activity) {
        Intent intent = new Intent();
        intent.setClass(activity, BuycreditcardEvaluationSuccessActicvity.class);
        activity.startActivity(intent);

    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_buy_credit_card_successful);
        ButterKnife.bind(this);
        navigationBar.setNavigationBarListener(this);
    }

    @OnClick(R.id.achieve)
    public void onClick() {
        EvaluationRecordActivity.start(this);
    }


    @Override
    public void navigationLeft() {
        CreditCardEcaluationActivity.start(this);
    }

    @Override
    public void navigationRight() {

    }
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            CreditCardEcaluationActivity.start(this);
        }
        return super.onKeyDown(keyCode, event);
    }
}
